﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SMTC.Model.Model;
using SMTC.BO.Plant;
using SMTC.WebCommon.Common;
public partial class BaseInfoManagement_FactoryInfoMaintain : BasePage
{
    PlantProccessServices proc = new PlantProccessServices();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
         
        }
    }

    protected void btnSearch_Click(object sender, EventArgs e)
    {
        this.gvPlantList.DataBind();
    }
    protected void gvPlantList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName == "Del")
        {
            if (proc.DeletePlant(e.CommandArgument.ToString()))
            {
                ShowMessage(Resources.Resource.PlantInfoDeletedSuccess);//"工厂信息删除成功！"
            }
            else
            {
                ShowMessage(Resources.Resource.PlantInfoDeletedFailed);//工厂信息删除失败！
            }
        }
    }
    
}